import axios from '@/utils/request.js';

/**
 * 登陆
 * */
const login = (params) => {
	return axios.post("/cas/login", params, {
		token: false,
		// header: { 'Content-Type': 'application/json;charset=UTF-8' } // Request Payload
		header: { 'Content-Type': 'application/x-www-form-urlencoded' } // Form Data
	})
}
/**
 * 查看个人信息
 * */
const getUserInfo = (body) => axios.post('/cms/account/queryLoginAccountInfo.json', body)

export { login, getUserInfo }
